package com.yjy.moudle_pair;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * author : yangjinyang
 * create : 2020/12/1
 * description :
 */
public class PairAdapter extends BaseQuickAdapter<NewsBean.RecordsBean, BaseViewHolder> {
    public PairAdapter() {
        super(R.layout.item_pair);
    }

    @Override
    protected void convert(BaseViewHolder helper, NewsBean.RecordsBean item) {
        helper.setText(R.id.tv_title, item.getTitle())
                .setText(R.id.tv_content, item.getGame() + "   今天");

        Glide.with(mContext).load(item.getCover()).into((ImageView) helper.getView(R.id.iv_img));


    }
}
